Item

@Serializable
data class Item(val id: Int, val name: String, val cost: Int, val flingPower: Int?, val flingEffect: Handle.Named<ItemFlingEffect>?, val attributes: List<Handle.Named<ItemAttribute>>, val category: Handle.Named<ItemCategory>, val effectEntries: List<VerboseEffect>, val flavorTextEntries: List<VersionGroupFlavorText>, val gameIndices: List<GenerationGameIndex>, val names: List<Name>, val heldByPokemon: List<ItemHolderPokemon>, val babyTriggerFor: Handle.Unnamed<EvolutionChain>?, val sprites: ItemSprites, val machines: List<MachineVersionDetail>) : NamedModel(source)

An item is an object in the games which the player can pick up, keep in their bag, and use in some manner. They have various uses, including healing, powering up, helping catch Pokémon, or to access a new area. See: https://pokeapi.co/docs/v2#items

Parameters

id

The identifier for this resource.

name

The name for this resource.

cost

The price of this item in stores.

flingPower

The power of the move Fling when used with this item.

flingEffect

The effect of the move Fling when used with this item.

attributes

A list of attributes this item has.

category

The category of items this item falls into.

effectEntries

The effect of this item listed in different languages.

flavorTextEntries

The flavor text of this item listed in different languages.

gameIndices

A list of game indices relevent to this item by generation.

names

The name of this item listed in different languages.

heldByPokemon

A list of Pokémon that might be found in the wild holding this item.

babyTriggerFor

An evolution chain this item requires to produce a baby during mating.

sprites

A set of sprites used to depict this item in the game.

machines

A list of the machines related to this item.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, cost: Int, flingPower: Int?, flingEffect: Handle.Named<ItemFlingEffect>?, attributes: List<Handle.Named<ItemAttribute>>, category: Handle.Named<ItemCategory>, effectEntries: List<VerboseEffect>, flavorTextEntries: List<VersionGroupFlavorText>, gameIndices: List<GenerationGameIndex>, names: List<Name>, heldByPokemon: List<ItemHolderPokemon>, babyTriggerFor: Handle.Unnamed<EvolutionChain>?, sprites: ItemSprites, machines: List<MachineVersionDetail>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val cost: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val id: Int
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
Link copied to clipboard